package cn.ekgc.scalademo1
//单列对象
object LikeStatic {
  //public static final int n = 5
  val n = 5

  // public static void foo(){sout(n)}
  def foo = {
    println(n+"foo")
  }

  //static {sout(n)}
  println(n+"static {}")

}
